package com.microframework.boot.system.model.response;

import java.util.List;

import com.fasterxml.jackson.annotation.JsonInclude;
import com.fasterxml.jackson.annotation.JsonProperty;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

@Data
@AllArgsConstructor
@NoArgsConstructor
@JsonInclude(JsonInclude.Include.NON_EMPTY)
public class SysRouteMeta {
	
	@Schema(description = "中文标题")
    private String cnTitle;
	
	@Schema(description = "英文标题")
    private String enTitle;
	
	@Schema(description = "图标")
    private String icon;
	
	@Schema(description = "页面缓存")
    private boolean keepAlive;
	
	@Schema(description = "固定显示")
    private boolean fixedTab;
	
	@JsonProperty("isHide")
	@Schema(description = "隐藏")
    private boolean isHide;
	
	@JsonProperty("isHideTab")
	@Schema(description = "隐藏标签")
    private boolean isHideTab;
	
	@JsonProperty("isIframe")
	@Schema(description = "内嵌")
    private boolean isIframe;
	
	@Schema(description = "外部链接")
    private String link;
	
    @JsonProperty("isFirstLevel")
	@Schema(description = "是否为一级菜单")
    private boolean isFirstLevel;
	
	@Schema(description = "角色集合")
    private String[] roles;
	
	@Schema(description = "权限集合")
    private List<AuthItem> authList;

}


